import request from '@/utils/request'

const dashboardApi = {
  getIndexStatisics: '/api/DATATJ//Get_IndexStatisics',
  getIndexCharts: '/api/DATATJ//getIndexStatistics',
  getIndexWorkList: '/api/Worklog/Get_IndexWorkList',
  getIndexProposerList: '/api/DATATJ//get_IndexProposerList',
  getDataBoard: '/api/DATATJ/Get_DataBoard'
}

export function getIndexStatisics (params) {
  return request({
    url: dashboardApi.getIndexStatisics,
    method: 'get',
    params
  })
}

export function getIndexCharts (params) {
  return request({
    url: dashboardApi.getIndexCharts,
    method: 'get',
    params
  })
}

export function getIndexWorkList (params) {
  return request({
    url: dashboardApi.getIndexWorkList,
    method: 'get',
    params
  })
}

export function getIndexProposerList (params) {
  return request({
    url: dashboardApi.getIndexProposerList,
    method: 'get',
    params
  })
}

export function getDataBoard (params) {
  return request({
    url: dashboardApi.getDataBoard,
    method: 'get',
    params
  })
}
